package com.developer.platform.domain.service.impl;

import com.developer.platform.domain.service.ISecurityService;
import com.veeker.core.services.IOperatorService;
import org.springframework.stereotype.Service;

/**
 * @author ：qiaoliang
 * @date ：2020-11-09
 */
@Service
public class OperatorServiceImpl implements IOperatorService {

    private final ISecurityService securityService;

    public OperatorServiceImpl(ISecurityService securityService) {
        this.securityService = securityService;
    }

    @Override
    public Object operator() {
        return securityService.getUserDetailsUserId();
    }

    @Override
    public Object operatorType() {
        return "-";
    }
}
